package jy.game.components.animation;


import java.util.Locale;

import wx.xml.simpleframework.xml.Attribute;
import wx.xml.simpleframework.xml.Root;

@Root(name = "image")
public class JyAnimationImage {
    @Attribute public int anchorx;
    @Attribute public int anchory;
    @Attribute public int w;
    @Attribute public int h;

    @Override public /*override*/ String toString() {
        return String.format(Locale.getDefault(), "%d-%d-%d-%d",
            this.anchorx,
            this.anchory,
            this.w,
            this.h
        );
    }
}
